package com.lg.demo;

import java.util.ServiceLoader;

public class HelloDemoApp {

	
	public static void main(String[] args) {
		ServiceLoader<HelloSpi> helloLoad = ServiceLoader.load(HelloSpi.class);
		for (HelloSpi helloSpiItem : helloLoad) {
			String sayHello = helloSpiItem.sayHello("say-hello");
			System.out.println(sayHello);
		}
	}
	
}
